package com.itheima.d08_reflect_getclass;

public class Test {
    public static void main(String[] args) throws ClassNotFoundException {
        //
        Class<Dog> dogClass = Dog.class;
        System.out.println("Dog的Class对象:"+dogClass);

        //2.
        Class dogClass2 = Class.forName("com.itheima.d08_reflect_getclass.Dog");
        System.out.println("Dog的Class对象:"+dogClass2);

        //3.
        Dog dog = new Dog();
        Class  dogClass3 = dog.getClass();
        System.out.println("Dog的Class对象:"+dogClass3);
    }
}
